#include<string>

#include<iostream>

using namespace std;

int main()
{
    string a;
    cin >> a;
    string b = a.substr(0, 5);
    string tmp = a.substr(6);
    b = tmp + "-" + b;
    cout << b << endl;
    return 0;
}